import { Component, OnInit, Input, SimpleChanges, Output, EventEmitter,ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'el-autocomplete-suggestions',
  templateUrl: './el-autocomplete-suggestion.component.html',
  styleUrls: ['./el-autocomplete-suggestion.component.css','./autocomplete.css'],
  encapsulation:ViewEncapsulation.None
})
export class ElAutocompleteSuggestionComponent implements OnInit {

  // props
  @Input() props:Object;
  @Input() suggestions:any[]=[{label:'heihei',value:'haha'}];

  @Output() itemClick:EventEmitter<any>=new EventEmitter<any>()

  // state
  dropdownWidth=''

  // methods
  select(item){
      this.itemClick.emit(item)
  }




  constructor() { }

  ngOnInit() {
  }
  ngOnChanges(changes:SimpleChanges){
      
  }

}
